// NOLINTBEGIN
#include <iostream>
using namespace std;

class Cycle_sum {
 public:
  void while_cycle_sum() {
    cout << "while cycle Cycle_sum" << endl;
    int sum = 0;
    int i   = 1;
    while (i <= 10) {
      sum = i + sum;
      i++;
    }
    cout << "sum = " << sum << endl;
  }

  void for_cycle_sum() {
    cout << "for cycle Cycle_sum" << endl;
    int sum = 0;
    for (int i = 1; i <= 10; i++) {
      sum = i + sum;
    }
    cout << "sum = " << sum << endl;
  }

  void do_while_cycle_sum() {
    cout << "do while cycle Cycle_sum" << endl;
    int sum = 0;
    int i   = 1;
    do {
      sum = i + sum;
      i++;
    } while (i <= 10);
    cout << "sum = " << sum << endl;
  }
};

int main() {
  Cycle_sum cs1;
  cs1.while_cycle_sum();
  cs1.for_cycle_sum();
  cs1.do_while_cycle_sum();
  return 0;
}
// NOLINTEND